package com.ems.mapper;

import com.ems.entity.TUser;
import com.ems.entity.TUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZZH
 * @since 2022-06-27
 */
@Mapper
public interface TUserRoleMapper extends BaseMapper<TUserRole> {


    //查找数据(单)
//    @Select("select * from t_user where id = #{id}")
    public TUserRole findOne(Integer userId);

    //查找数据(全)
//    @Select("select * from t_user")
    List<TUserRole> findAll();
}
